import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router/index'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

//引入样式文件
import '@/styles/common.scss'
const pinia = createPinia()

//引入懒加载指令插件并且注册
// 全局指令注册
import { lazyPlugin } from '@/directives'

//引入全局注册插件
import {componentPlugin} from '@/components/index'

const app = createApp(App)
app.use(pinia)
pinia.use(piniaPluginPersistedstate)
app.use(router)
app.use(lazyPlugin)
app.use(componentPlugin)
app.mount('#app')



